/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_1001()
{
    int n,cnt=0;
    scanf("%d",&n);
    while (n!=1)
    {
        if (n%2==0)
        {
            n/=2;
        }
        else
        {
            n=(3*n+1)/2;
        }
        ++cnt;
    }
    printf("%d\n",cnt);
	return 0;
}
